#include<iostream>
using namespace std;

int main(){
    //c语言中#include<stdio.h>
    //用getchar() putchar()从终端输入输出字符
    //用gets()scanf()，puts()printf()输入输出字符串

    //c++提供的#include<iostream>不但包含上面功能，还新增了如下
    //cin接受输入
    //cout输出，
    //cerr非缓冲错误流
    //clog缓冲错误流

    char name[50];
    char str[] = "input your name :";
    cout << str << endl;
    cin >> name;
    cout << "your name is :" << name << endl;
}